<?php
$isPopUp = true;
$isRelodable = false;

require_once("../../pers/inc.config.php");
require_once(R2_FS_WEB_ROOT.'/app/_inc/inc.session.php');

$sSql= "SELECT * FROM rint_doc WHERE id_rint_doc =".reqvar('id');
$objDB->query($sSql,'sel_alg');
$arec =$objDB->fetch('sel_alg');

$fullPath=R2_FS_ALLEG_DIR."/F".reqvar('id');
$sFile=file_get_contents($fullPath);
headerDownLoad(strlen($sFile),$arec['nome_file']);
echo $sFile;
exit;

